
package com.insigma.business.qrcode.intell._consumer.impl;


import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.intell._consumer.CareSoldierDemandConsumer;
import com.insigma.business.qrcode.intell._provider.CareSoldierDemandProvider;
import com.insigma.business.qrcode.intell.dto.CareSoldierDemandInsertRequest;
import com.insigma.business.qrcode.soldier.dto.CareSoldierDemandDTO;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.soldier.request.CareSoldierDemandSearchRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("careSoldierDemandConsumer")
public class CareSoldierDemandConsumerImpl implements CareSoldierDemandConsumer {

    @Resource
    private CareSoldierDemandProvider careSoldierDemandProvider;


    @Override
    public BasePagingResponse<List<CareSoldierDemandDTO>> searchCareSoldierDemand(CareSoldierDemandSearchRequest searchRequest) {
        return careSoldierDemandProvider.searchCareSoldierDemand(searchRequest);
    }

    @Override
    public BaseResponse<String> saveCareSoldierDemandToHz(CareSoldierDemandInsertRequest request) {
        return careSoldierDemandProvider.saveCareSoldierDemandToHz(request);
    }
    @Override
    public BaseResponse<String> insertCareSoldierDemand(final CareSoldierDemandInsertRequest insertRequest) {
        return careSoldierDemandProvider.insertCareSoldierDemand(insertRequest);
    }

    @Override
    public BaseResponse<CareSoldierDemandDTO> getCareSoldierDemand(final BaseGetRequest baseGetRequest) {
        return careSoldierDemandProvider.getCareSoldierDemand(baseGetRequest);
    }
    @Override
    public BaseResponse<String> evaluateDemand(CareSoldierDemandInsertRequest careSoldierDemandInsertRequest) {
        return careSoldierDemandProvider.evaluateDemand(careSoldierDemandInsertRequest);
    }

}
